package com.rideplans.client;

import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.TextBox;

public class Login extends DialogBox {
	Button btnNewButton;
	public Login() {
		setHTML("Login");
		
		AbsolutePanel absolutePanel = new AbsolutePanel();
		setWidget(absolutePanel);
		absolutePanel.setSize("382px", "167px");
		
		Label lblUsername = new Label("Username :");
		absolutePanel.add(lblUsername, 10, 10);
		
		TextBox textBox = new TextBox();
		absolutePanel.add(textBox, 10, 32);
		textBox.setSize("350px", "16px");
		
		Label lblPassword = new Label("Password");
		absolutePanel.add(lblPassword, 10, 62);
		
		PasswordTextBox passwordTextBox = new PasswordTextBox();
		absolutePanel.add(passwordTextBox, 10, 84);
		passwordTextBox.setSize("350px", "16px");
		
		btnNewButton = new Button("Login");
		absolutePanel.add(btnNewButton, 323, 133);
	}
}
